com.supermap.mapping
类 ThemeGraph
- java.lang.Object
-
- com.supermap.mapping.Theme
-
- com.supermap.mapping.ThemeGraph
-
public class ThemeGraph extends Theme
统计专题图
-
-
构造器概要
构造器 构造器和说明 ThemeGraph()构造方法ThemeGraph(ThemeGraph themeGraph)构造方法
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 intadd(ThemeGraphItem item)添加专题图子项voidclear()清除voiddispose()释放booleanexchangeItem(int index1, int index2)交换专题图子项booleanfromXML(java.lang.String xml)从格式化字符串转换为专题图ColorgetAxesColor()获取坐标轴颜色TextStylegetAxesTextStyle()获取坐标轴文本风格intgetCount()获取专题图子项个数GraduatedModegetGraduatedMode()获取显示计算方式ThemeGraphTextFormatgetGraphTextFormat()获取统计专题图文本显示格式TextStylegetGraphTextStyle()获取统计图上的文字标注风格ThemeGraphTypegetGraphType()获取专题图显示类型ThemeGraphItemgetItem(int index)获取指定专题图子项GeoStylegetLeaderLineStyle()获取对象之间的牵引线的风格doublegetMaxGraphSize()返回统计图显示最大值doublegetMinGraphSize()返回统计图显示最小值java.lang.StringgetOffsetX()获取水平偏移量。java.lang.StringgetOffsetY()获取垂直偏移量。intindexOf(java.lang.String graphExpression)根据子项的字段表达式得到当前子项所在位置booleaninsert(int index, ThemeGraphItem item)插入专题图子项booleanisAllDirectionsOverlappedAvoided()标签专题图是否全方位自动避让,默认为falsebooleanisAxesDisplayed()是否显示坐标轴booleanisAxesGridDisplayed()是否显示网格坐标booleanisFlowEnabled()获取是否允许统计图追随其对应的对象流动显示。booleanisGraphSizeFixed()是否固定booleanisGraphTextDisplayed()是否显示统计图上的文字标注booleanisLeaderLineDisplayed()是否显示统计图和它表示的对象之间的牵引线booleanisNegativeDisplayed()是否显示负值booleanisOffsetFixed()返回是否固定偏量booleanisOverlapAvoided()是否避让booleanremove(int index)移除指定子项voidsetAllDirectionsOverlappedAvoided(boolean value)设置标签专题图是否全方位自动避让,默认为falsevoidsetAxesColor(Color color)设置坐标轴颜色voidsetAxesDisplayed(boolean value)设置是否显示坐标轴voidsetAxesGridDisplayed(boolean value)设置是否显示网格坐标voidsetFlowEnabled(boolean value)获取是否允许统计图追随其对应的对象流动显示。voidsetGraduatedMode(GraduatedMode value)设置显示计算方式voidsetGraphSizeFixed(boolean value)设置符号固定voidsetGraphTextDisplayed(boolean value)设置是否显示统计图上的文字标注voidsetGraphTextFormat(ThemeGraphTextFormat themeGraphTextFormat)设置统计专题图文本显示格式voidsetGraphTextStyle(TextStyle textStyle)设置统计图上的文字标注风格voidsetGraphType(ThemeGraphType themeGraphType)设置专题图显示类型voidsetItem(int index, ThemeGraphItem item)设置指定专题图子项voidsetLeaderLineDisplayed(boolean value)设置是否显示统计图和它表示的对象之间的牵引线。voidsetLeaderLineStyle(GeoStyle style)设置对象之间的牵引线的风格voidsetMaxGraphSize(double value)设置统计图显示最大值voidsetMinGraphSize(double value)设置统计图显示最小值voidsetNegativeDisplayed(boolean value)设置是否显示负值voidsetOffsetFixed(boolean value)设置是否固定偏量voidsetOffsetX(java.lang.String value)设置水平偏移量。voidsetOffsetY(java.lang.String value)设置垂直偏移量。voidsetOverlapAvoided(boolean value)设置是否避让java.lang.StringtoString()输出专题图格式化字符串-
从类继承的方法 com.supermap.mapping.Theme
getMemoryData, getType, setMemoryData, toXML
-
-
-
-
构造器详细资料
-
ThemeGraph
public ThemeGraph()
构造方法
-
ThemeGraph
public ThemeGraph(ThemeGraph themeGraph)
构造方法- 参数:
themeGraph- 统计专题图
-
-
方法详细资料
-
getItem
public ThemeGraphItem getItem(int index)
获取指定专题图子项- 参数:
index- 索引- 返回:
- 指定专题图子项
-
setItem
public void setItem(int index, ThemeGraphItem item)设置指定专题图子项- 参数:
index- 索引item- 指定专题图子项
-
getCount
public int getCount()
获取专题图子项个数- 返回:
- 子项个数
-
isGraphSizeFixed
public boolean isGraphSizeFixed()
是否固定- 返回:
- 是否固定
-
setGraphSizeFixed
public void setGraphSizeFixed(boolean value)
设置符号固定- 参数:
value- 是否固定
-
getOffsetX
public java.lang.String getOffsetX()
获取水平偏移量。- 返回:
- 水平偏移量。
-
setOffsetX
public void setOffsetX(java.lang.String value)
设置水平偏移量。- 参数:
value- 水平偏移量。
-
getOffsetY
public java.lang.String getOffsetY()
获取垂直偏移量。- 返回:
- 垂直偏移量。
-
setOffsetY
public void setOffsetY(java.lang.String value)
设置垂直偏移量。- 参数:
value- 垂直偏移量。
-
getGraphType
public ThemeGraphType getGraphType()
获取专题图显示类型- 返回:
- 专题图显示类型
-
setGraphType
public void setGraphType(ThemeGraphType themeGraphType)
设置专题图显示类型- 参数:
themeGraphType- 专题图显示类型
-
isFlowEnabled
public boolean isFlowEnabled()
获取是否允许统计图追随其对应的对象流动显示。初始为False,即不允许对象流动显示- 返回:
- 获取是否允许统计图追随其对应的对象流动显示。初始为False,即不允许对象流动显示
-
setFlowEnabled
public void setFlowEnabled(boolean value)
获取是否允许统计图追随其对应的对象流动显示。初始为False,即不允许对象流动显示- 参数:
value- 获取是否允许统计图追随其对应的对象流动显示。初始为False,即不允许对象流动显示
-
getLeaderLineStyle
public GeoStyle getLeaderLineStyle()
获取对象之间的牵引线的风格- 返回:
- 对象之间的牵引线的风格
-
setLeaderLineStyle
public void setLeaderLineStyle(GeoStyle style)
设置对象之间的牵引线的风格- 参数:
style- 对象之间的牵引线的风格
-
isLeaderLineDisplayed
public boolean isLeaderLineDisplayed()
是否显示统计图和它表示的对象之间的牵引线- 返回:
- 是否显示统计图和它表示的对象之间的牵引线
-
setLeaderLineDisplayed
public void setLeaderLineDisplayed(boolean value)
设置是否显示统计图和它表示的对象之间的牵引线。注:在openGL模式下不生效- 参数:
value- 是否显示统计图和它表示的对象之间的牵引线
-
isNegativeDisplayed
public boolean isNegativeDisplayed()
是否显示负值- 返回:
- 是否显示负值
-
setNegativeDisplayed
public void setNegativeDisplayed(boolean value)
设置是否显示负值- 参数:
value- 是否显示负值
-
getAxesColor
public Color getAxesColor()
获取坐标轴颜色- 返回:
- 坐标轴颜色
-
setAxesColor
public void setAxesColor(Color color)
设置坐标轴颜色- 参数:
color- 坐标轴颜色
-
isAxesDisplayed
public boolean isAxesDisplayed()
是否显示坐标轴- 返回:
- 是否显示坐标轴
-
setAxesDisplayed
public void setAxesDisplayed(boolean value)
设置是否显示坐标轴- 参数:
value- 是否显示坐标轴
-
getAxesTextStyle
public TextStyle getAxesTextStyle()
获取坐标轴文本风格- 返回:
- 坐标轴文本风格
-
isAxesGridDisplayed
public boolean isAxesGridDisplayed()
是否显示网格坐标- 返回:
- 是否显示网格坐标
-
setAxesGridDisplayed
public void setAxesGridDisplayed(boolean value)
设置是否显示网格坐标- 参数:
value- 是否显示网格坐标
-
getGraphTextStyle
public TextStyle getGraphTextStyle()
获取统计图上的文字标注风格- 返回:
- 统计图上的文字标注风格
-
setGraphTextStyle
public void setGraphTextStyle(TextStyle textStyle)
设置统计图上的文字标注风格- 参数:
textStyle- 统计图上的文字标注风格
-
getGraphTextFormat
public ThemeGraphTextFormat getGraphTextFormat()
获取统计专题图文本显示格式- 返回:
- 统计专题图文本显示格式
-
setGraphTextFormat
public void setGraphTextFormat(ThemeGraphTextFormat themeGraphTextFormat)
设置统计专题图文本显示格式- 参数:
themeGraphTextFormat- 统计专题图文本显示格式
-
isGraphTextDisplayed
public boolean isGraphTextDisplayed()
是否显示统计图上的文字标注- 返回:
- 是否显示统计图上的文字标注
-
setGraphTextDisplayed
public void setGraphTextDisplayed(boolean value)
设置是否显示统计图上的文字标注- 参数:
value- 是否显示统计图上的文字标注
-
isOffsetFixed
public boolean isOffsetFixed()
返回是否固定偏量- 返回:
- 是否固定偏量
-
setOffsetFixed
public void setOffsetFixed(boolean value)
设置是否固定偏量- 参数:
value- 是否固定偏量
-
getMinGraphSize
public double getMinGraphSize()
返回统计图显示最小值- 返回:
- 统计图显示最小值
-
setMinGraphSize
public void setMinGraphSize(double value)
设置统计图显示最小值- 参数:
value- 统计图显示最小值
-
getMaxGraphSize
public double getMaxGraphSize()
返回统计图显示最大值- 返回:
- 统计图显示最大值
-
setMaxGraphSize
public void setMaxGraphSize(double value)
设置统计图显示最大值- 参数:
value- 统计图显示最大值
-
getGraduatedMode
public GraduatedMode getGraduatedMode()
获取显示计算方式- 返回:
- 显示计算方式
-
setGraduatedMode
public void setGraduatedMode(GraduatedMode value)
设置显示计算方式- 参数:
value- 显示计算方式
-
isOverlapAvoided
public boolean isOverlapAvoided()
是否避让- 返回:
- 是否避让
-
setOverlapAvoided
public void setOverlapAvoided(boolean value)
设置是否避让- 参数:
value- 是否避让
-
add
public int add(ThemeGraphItem item)
添加专题图子项- 参数:
item- 专题图子项- 返回:
- 当前索引
-
insert
public boolean insert(int index, ThemeGraphItem item)插入专题图子项- 参数:
index- 索引item- 专题图子项- 返回:
- 插入是否成功
-
exchangeItem
public boolean exchangeItem(int index1, int index2)交换专题图子项- 参数:
index1- 交换专题图子项index2- 被交换专题图子项- 返回:
- 交换是否成功
-
indexOf
public int indexOf(java.lang.String graphExpression)
根据子项的字段表达式得到当前子项所在位置- 参数:
graphExpression- 字段表达式- 返回:
- 索引
-
remove
public boolean remove(int index)
移除指定子项- 参数:
index- 索引- 返回:
- 是否移除成功
-
clear
public void clear()
清除
-
dispose
public void dispose()
释放
-
isAllDirectionsOverlappedAvoided
public boolean isAllDirectionsOverlappedAvoided()
标签专题图是否全方位自动避让,默认为false- 返回:
- 标签专题图是否全方位自动避让,默认为false
-
setAllDirectionsOverlappedAvoided
public void setAllDirectionsOverlappedAvoided(boolean value)
设置标签专题图是否全方位自动避让,默认为false- 参数:
value- 设置标签专题图是否全方位自动避让,默认为false
-
-